package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;


@SpringBootApplication
/**
 * @EnableDiscoveryClient :启用服务注册与发现
 @EnableFeignClients：启用feign进行远程调用
 */
@EnableDiscoveryClient
@EnableFeignClients
/**
 * 熔断监控
 */
@EnableHystrixDashboard
@EnableCircuitBreaker
public class PringCloudConsumerApplication {

	public static void main(String[] args) {
		SpringApplication.run(PringCloudConsumerApplication.class, args);
	}
}
